home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-05-17 | 1.6 KB | 85 lines | [TEXT/MPS ] |
- /*
- File: FWiXprefs.h
-
- Contains: Declarations for prefs handling.
-
- Written by: Jay Lloyd
-
- Copyright: © 1996-1997 by Apple Computer, Inc., all rights reserved.
-
- Writers:
-
- (jkl) Jay Lloyd
-
- Change History (most recent first):
-
- <FW2> 5/7/97 jkl Nothing really.
- <FW1> 3/18/97 jkl first checked in
- */
-
- enum
- {
- kPrefsResourceType = 'prfs',
- kWinPosPrefsType = 'win ',
- kWinPosPrefsID = 128,
- kPrefsResourceID = 128,
- kSndPrefsResourceID = 129,
- kDropPrefsResourceID = 130,
- kPrefsFileResourceID = 131,
-
- kCustomGetFileResID = 132,
- kSelectItem = 13,
- kCustomGetUserItem = 14
- };
-
- static void HandlePrefsDialogEvent (
- DialogPtr pDlog,
- SInt16 itemHit);
-
- static OSErr GetDeskFolderSpec(
- FSSpec *pFileSpec);
-
- static pascal void DrawUserSelection(
- WindowPtr theWindow,
- SInt16 itemNo);
-
- static pascal void DrawDefaultButton(
- WindowPtr theWindow,
- SInt16 itemNo);
-
- static pascal Boolean HandlePrefsEventFilter(
- DialogPtr pDlog,
- EventRecord *pEvent,
- SInt16 *itemHit);
-
- static OSErr SetupDialogPrefs (
- DialogPtr pDlog);
-
- static OSErr UpdateDialogPrefs (
- DialogPtr pDlog);
-
- static OSErr GetDropFolder (
- StandardFileReply *reply );
-
- static pascal Boolean FilterAllFiles (
- CInfoPBPtr pb,
- Ptr pMyData);
-
- static pascal SInt16 DialogHook (
- SInt16 item,
- DialogPtr pDlog,
- Ptr pMyData);
-
- static Boolean SameFile (
- FSSpec *spec1,
- FSSpec *spec2);
-
- static void SetSelectButtonName (
- FSSpec *spec,
- DialogPtr theDlg);
-
- static void AppendStrToStr (
- StringPtr dst,
- StringPtr src,
- UInt8 maxDstLen);
-